package com.wwfish.cms.model;

import com.google.gwt.user.client.rpc.IsSerializable;
import com.wwfish.gwt.reflection.util.IFishDto;

import java.io.Serializable;

/**
 * Created by IntelliJ IDEA.
 * User: Tom
 * Date: 2010-8-9
 * Time: 9:37:01
 * To change this template use File | Settings | File Templates.
 */
public class GeneralCodeDto implements Serializable, IsSerializable, IFishDto {
    private Long id;
    //代码名称
    private String name;
    //代码值
    private String code;
    //父级ID
    private Long parentId;
    //状态：0激活，1禁用
    private Boolean disable;
    //代码序列号
    private Integer sequence;
    //代码类别
    private String variety;

    public GeneralCodeDto() {
    }

    public GeneralCodeDto(Long id, String name, String code) {
        this.id = id;
        this.name = name;
        this.code = code;
    }

    public String getVariety() {
        return variety;
    }

    public void setVariety(String variety) {
        this.variety = variety;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public Long getParentId() {
        return parentId;
    }

    public void setParentId(Long parentId) {
        this.parentId = parentId;
    }

    public Boolean getDisable() {
        return disable;
    }

    public void setDisable(Boolean disable) {
        this.disable = disable;
    }

    public Integer getSequence() {
        return sequence;
    }

    public void setSequence(Integer sequence) {
        this.sequence = sequence;
    }
}
